package exception.exception01;

import java.io.FileOutputStream;
import java.io.IOException;

public class FinallyDemo2 {
    public static void main(String[] args) {
        FileOutputStream fos = null;
        try {

            fos = new FileOutputStream("/a/a/a/fos.dat");
            System.out.println("正在运行中");

        } catch (IOException e) {
            System.out.println("出现问题了");
        } finally {
            try{
                fos.close();

            }catch (Exception e1){
                System.out.println("出现大问题了,要解决一下");
            }
        }

        System.out.println("程序结束");
    }
}
